import request from '../https/request';
//获取所有资源类型方向列表
export const getSchemas= (data) => {
    console.log(data)
    return request({
        url: '../json/training/schemaTable.json',
        method: 'get',
    });
};
//方案设置 已分配课程数据
export const getAllocation= (data) => {
    // console.log('===getAlloactionData===',data)
    return request({
        url: '../json/training/allocation_table.json',
        method: 'get',
    });
};
//方案设置 选择新课程数据
export const getChooseData= (data) => {
    // console.log('===getAlloactionData===',data)
    return request({
        url: '../json/training/choose_table.json',
        method: 'get',
    });
};

//-----------------客户列表菜单--------------------
//获取所有的课程列表
export const getCourses= (data) => {
    // console.log('===getCourses===',data)
    return request({
        url: '../json/training/courseList.json',
        method: 'get',
    });
};

//获取所有的章节
export const getChapters= (data) => {
    // console.log('===getChapters===',data)
    return request({
        url: '../json/training/chapter_table.json',
        method: 'get',
    });
};
//获取所有节
export const getChapterSubs= () => {
    // console.log('===getChapters===',data)
    return request({
        url: '../json/training/chapter_subTable.json',
        method: 'get',
    });
};

//------------获取课程分类数据----------
export const getCourseCategories= (data) => {
    // console.log('===getChapters===',data)
    return request({
        url: '../json/training/courseCategory.json',
        method: 'get',
    });
};
export const getCourseCategorieySub= () => {
    // console.log('===getChapters===',data)
    return request({
        url: '../json/training/courseCategory_zi.json',
        method: 'get',
    });
};